<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>login_checkPic_frame</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <style type="text/css">
        .resetSection{
          padding: 0px 0 4px;
          background: url(../../image/reset@2x.png) no-repeat center;
          background-size:100% 100%;
        }
        .titleNum,.existNum{
          text-align: center;
        }
        .titleNum{
              font-size: 14px;
          margin: 41px 0 11px 0;
        }
        .existNum{
          font-size: 19px;
          line-height: 19px;
          margin-bottom: 71px;
        }
        .aui-list .aui-list-item {
            margin: 0 0 0px 28px;
            height: 56px;
            line-height: 56px;
            padding-left: 0;
            border-bottom: 1px solid rgba(204, 204, 204, .2);
            background-image: -webkit-linear-gradient(90deg, rgba(221, 221, 221, 0), rgba(221, 221, 221, 0) 50%, transparent 50%);
            background-image: linear-gradient(90deg, rgba(221, 221, 221, 0), rgba(221, 221, 221, 0) 50%, transparent 50%);
        }

        @media screen and (-webkit-min-device-pixel-ratio: 1.5) {
            .aui-list {
                background-image: linear-gradient(90deg, rgba(221, 221, 221, 0), rgba(221, 221, 221, 0) 50%, transparent 50%);
            }
        }
        .login-input {
            text-indent: 5px;
            letter-spacing: 2px;
            font-size: 17px!important;
        }
        .getVilidCode {
            font-size: 17px;
            color: #141414 !important;
            background-color: rgba(255, 255, 255, 0)!important;
        }
        .subBtnse{
                  margin-top: 80px;
        }
        .subBtn {
            margin: 0 auto;
            height: 40px!important;
            line-height: 40px!important;
            width: 245px;
            background: url(../../image/sure@2x.png) no-repeat center;
            background-size: 100%;
            background-color: rgba(255, 255, 255, 0) !important;
        }

        /*适配屏幕320px*/
        @media (max-width: 320px){
          .resetSection .aui-col-xs-3 {
              height: 80px;
          }
          .resetSection .aui-col-xs-3 img {
              padding: 3px 0 0 3px;
          }
          .padding-R {
              padding-right: 3px!important;
          }
          .resetSection {
              padding: 0px 0 3px;
          }
          .aui-list .aui-list-item,
          .login-input,
           .getVilidCode,
           .loginOpert .creatOrforget {
              font-size: 12px!important;
          }
          .subBtn {
              height: 27px!important;
              line-height: 27px!important;
              width: 163px;
          }
          .titleNum{
            margin:27px 0 7px 0;
          }
          .existNum{
                margin-bottom: 47px;
          }
          .subBtnse {
              margin-top: 36px;
          }
      	}

        /*适配屏幕320px*/
    </style>
</head>
<body>
    <section class="aui-content aui-margin-b-10 resetSection" id="resetPwdPage" v-bind:style="{height:wHeight}">
         <ul class="aui-list aui-form-list ">
             <li class="aui-list-item">
                 <div class="aui-list-item-label  color-orange">
                     昵称
                 </div>
                 <div class="aui-list-item-inner">
                     <div class="aui-list-item-input aui-padded-l-10">
                         <input type="text" placeholder="请输入昵称" ref="NiName" id=""  class="login-input"  v-on:change="getNiNameValue()">
                                      <!-- pattern="[0-9]*" -->
                     </div>
                 </div>
             </li>
         </ul>
         <section class="aui-content-padded subBtnse">
             <div class="aui-btn aui-btn-block aui-btn-info aui-btn-sm subBtn" v-on:click="sureOperate()"></div>
         </section>
    </section>
  </body>
<script type="text/javascript" src="../../script/api.js" ></script>
<script type="text/javascript" src="../../script/vue.min.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/fastclick.js"></script>
<script type="text/javascript">
    apiready = function () {
    }
    ////初始化页面
    var app = new Vue({
        el: '#resetPwdPage',
        data: {
            NiName : '',
            wHeight:""
        },
        methods: {
            init: function() {
              /////初始化页面高度
                var wh = document.documentElement.clientHeight || document.body.clientHeight;
                this.wHeight = (wh) + 'px';
            },
            /////输入密码获得值
            getNiNameValue : function(){
               this.NiName = this.$refs.NiName.value;
            },
            sureOperate : function(){
              Method.gotoRegistMethod();
              Method.sendNiName();
            }
        },
        mounted:function(){
            this.init();
        }
    });
    //////保存昵称
    var Method = {
        /////点击确定返回
        gotoRegistMethod : function(){
            api.closeWin();
        },
        sendNiName : function(){
          api.sendEvent({
               name: 'personRegistInfo',
               extra: {
                   NiName: app.NiName,
                   staut : true
               }
           });
        }
    };
</script>
</html>
